package main

func eliminateRepet(strings []string) []string {
	if len(strings) < 2 {
		return strings
	}
	writeIndx := 0
	for i := 1; i < len(strings); i++ {
		if strings[writeIndx] != strings[i] {
			writeIndx++
			strings[writeIndx] = strings[i]
		}
	}
	return strings[:writeIndx+1]
}
